package com.errol.generic.sms.model;

/**
 * @author zhang xiao bin
 * @version v1.0
 * @date 2020/11/27
 * @since v
 **/
public class AliSmsResult {

    private boolean success;
    private int errCode;
    private String errMsg;

    public AliSmsResult(boolean success) {
        this.success = success;
    }

    public AliSmsResult(int errCode, String errMsg) {
        this.success = false;
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public boolean isSuccess() {
        return success;
    }

    public int getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }
}
